package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author: 封捷
 * @create-date: 2022/9/18 17:11
 */
@Component
public class SeckillFeignDegradeClient implements SeckillFeignClient {
    @Override
    public Result<List<SeckillGoods>> getAllSeckillGoods() {
        return Result.<List<SeckillGoods>>fail().message("服务降级了！");
    }

    @Override
    public Result<SeckillGoods> getSecKillGoodsBySkuId(Long skuId) {
        return Result.<SeckillGoods>fail().message("服务降级了！");
    }

    @Override
    public Result<Map<String, Object>> getDataForTrade() {
        return Result.<Map<String, Object>>fail().message("服务降级了！");
    }
}
